<!--
 * @Descripttion: 
 * @Version: 1.0
 * @Author: wangph
 * @Date: 2021-03-31 09:46:02
 * @LastEditors: wangph
 * @LastEditTime: 2021-04-27 09:54:01
-->
{extend name="layout" /}
{block name="content"}
<div class="row">
	<div class="col-md-12"> 
		<div class="box pd20">
			<span class="text-danger">{:lang('签名算法')}:</span> {:lang('将所有待请求的数据进行')}KEY{:lang('字典排序')} {:lang('然后获得')}url{:lang('字符串')}(String: a=1&b=2) ，{:lang('再使用')}appsecret{:lang('私钥对字符串进行')}SHA1{:lang('加密即可获得签名')}, appsecret {:lang('作为私钥不得提交')}。
		</div>
		<div class="box">
			<div class="box-header with-border">
                <h3 class="box-title">{:lang('签名验证')}</h3>
            </div>
			<div class="box-body">
			<form class="form row" action="{:url('')}" method="post">
				<div class="form-group col-md-12 col-xs-12">
					<label class="col-md-12">appsecret</label>
					<div class="col-md-12">
						<input type="text" name="app_secret" class="form-control" placeholder="{:lang('请输入你的私钥')}" value="{$app_secret}" data-rule="required"/>
					</div>
				</div>
				<div class="form-group col-md-12 col-xs-12">
					<label class="col-md-12">{:lang('签名字符串')}</label>
					<div class="col-md-12">
						<textarea type="text" name="keyword" class="form-control" placeholder="{:lang('请输入待签名的字符串')}" data-rule="required">{$keyword}</textarea>
					</div>
				</div>
				<div class="form-group col-md-12 col-xs-12">
					<div class="col-xs-12">
						<button class="btn btn-minw btn-primary" type="submit">{:lang('立即验证')}</button>
					</div>
				</div>
				<div class="form-group col-md-12 col-xs-12">
					<div class="col-xs-12"> {:lang('结果')}:<b>{$code} </b> </div>
				</div>
			</form>
			</div>
		</div>
	</div>
</div>
{/block}